package com.oa.cc.service;

import java.util.List;

import com.oa.cc.dao.EmpDao;
import com.oa.domain.Emp;


public class EmpServiceImpl implements EmpService {
	private EmpDao empDao;
	public void setEmpDao(EmpDao empDao) {
		this.empDao = empDao;
	}
	public List<Emp> getEmpsByExample(Emp emp) {	
		return empDao.getEmpsByExample(emp);
	}
	public Emp getEmpByDeptAndRole(Emp emp) {
		return empDao.getEmpByDeptAndRole(emp);
	}
	public Emp getEmpByRoleId(Long rid) {
		return empDao.getEmpByRoleId(rid);
	}
	public List<Emp> getEmpsByDeptno(Long deptno) {
		return empDao.getEmpsByDeptno(deptno);
	}
}
